module "resourcepool-proddata" {
    source                  = "../../../modules/maas/resource_pool"
    resource_pool_name      = "prod-data-k8s-cluster"
}

module "machine-10-3-9-21" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.61"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Flzx3kc@h3c"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-9-21"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.9.21"
    machine_pool            = module.resourcepool-proddata.name
    machine_network_mtu     = 9000
    instance_image          = "ubuntu-focal-2023-05-31-1685543044"
}

module "machine-10-3-9-22" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.62"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Flzx3kc@h3c"
    machine_hostname        = "10-3-9-22"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.9.22"
    machine_pool            = module.resourcepool-proddata.name
    machine_network_mtu     = 9000
    instance_image          = "ubuntu-2004-2023-07-23-1690091441"
    is_kube_worker          = true
}

module "machine-10-3-9-25" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.65"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Flzx3kc@h3c"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-9-25"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.9.25"
    machine_pool            = module.resourcepool-proddata.name
    machine_network_mtu     = 9000
    instance_image          = "ubuntu-20.04-2023-07-27-1690454620"
    is_kube_worker          = true
}

module "machine-10-3-9-26" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.66"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Flzx3kc@h3c"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-9-26"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.9.26"
    machine_pool            = module.resourcepool-proddata.name
    machine_network_mtu     = 9000
    instance_image          = "ubuntu-20.04-2023-07-27-1690454620"
    is_kube_worker          = true
}

module "machine-10-3-9-27" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.67"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Flzx3kc@h3c"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-9-27"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.9.27"
    machine_pool            = module.resourcepool-proddata.name
    machine_network_mtu     = 9000
    instance_image          = "ubuntu-20.04-2023-07-27-1690454620"
    is_kube_worker          = true
}

module "machine-10-3-9-43" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.35"
    ipmi_power_user         = "deeproute"
    ipmi_power_pass         = "Yrqxicr@123"
    machine_hostname        = "10-3-9-43"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.9.43"
    machine_pool            = module.resourcepool-proddata.name
    machine_network_mtu     = 9000
    instance_image          = "ubuntu-20.04.3-2023-07-27-1690438328" 
    is_kube_worker          = true
}

module "machine-10-3-9-44" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.36"
    ipmi_power_user         = "deeproute"
    ipmi_power_pass         = "Yrqxicr@123"
    machine_hostname        = "10-3-9-44"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.9.44"
    machine_pool            = module.resourcepool-proddata.name
    machine_network_mtu     = 9000
    instance_image          = "ubuntu-20.04.3-2023-07-27-1690438328" 
    is_kube_worker          = true
}
